<div class="fui-page fui-page-current">	
<style>
.syscolor {color:{{pagedata.item.syscolor||'#00c568'}}}
{{pagedata.item.diycss}}
</style>
<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true" ng-if="pagedata.pluginset.hdps">
	<div class="carousel-inner" role="listbox">
		<div ng-repeat="nav in pagedata.pluginset.hdps" ng-class="{'item':1, 'active':$index==0}" >
			<a ng-click="access_json(nav.url)">
				<img ng-src="{{tomedia(nav.picurl) || '../core/resource/images/nopic.jpg'}}" style="display: block; width: 100%; height: 100%;">
			</a>
		</div>
	</div>
	<style>
            .fui-swipe-page .fui-swipe-bullet {width:0.2rem;height:0.2rem;border-radius: 0.2rem;}
            .fui-swipe-page .fui-swipe-bullet.active {opacity: 1;width:0.6rem;border-radius: 0.2rem;}
    </style>
	<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 0.2rem; bottom: 0.2rem; ">
		<div class="fui-swipe-bullet" ng-repeat="nav in pagedata.pluginset.hdps" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
	</div>
</div>
	<div class="jy-content" style="padding-top: 0.5rem;padding-bottom: 4rem">
		<div ng-if="pagedata.post.isadd==1" class="tips tips-yellow">
			<i class="fa fa-bullhorn"></i> [<red>温馨提示</red>]：您今天已经提交过表单信息，不能重复提交，您可以修改下面信息！
		</div>
<div class="weui_cells weui_cells_form" style="margin-top:0">
            <div class="weui_cell">
                <div class="weui_cell_hd">
					<label class="weui_label">
					<span ng-if="pagedata.pluginset.nameicon" style="padding-right: 0.2rem"><i class="icon {{pagedata.pluginset.nameicon}}"></i></span>
					姓名<span class="must"></span>
					</label>
				</div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.post.name" placeholder="{{pagedata.pluginset.namedesc || '输入姓名'}}">
                </div>
            </div>
			<div class="weui_cells_title" style="padding-left:0">
				<span ng-if="pagedata.post.sexicon" style="padding-right: 0.2rem">
				<i class="icon {{pagedata.post.sexicon}}"></i></span>性别
			</div>
			<div class="weui_cells weui_cells_radio2">
					<div class="weui_cell">
					<div class="fui-cell-label" ng-repeat="(key,value) in pagedata.sex track by $index" ng-click="pagedata.post.sex=key;" style="margin-right:0.8rem;float:left;margin-bottom:0.5rem">
						<input type="radio" class="fui fui-radio fui-radio-danger verify-radio" ng-checked='pagedata.post.sex==key' name="radio{{i}}" value="{{key}}"> {{value}}
					</div>
					</div>
			</div>
			<div class="weui_cell">
							<div class="weui_cell_hd">
							<label class="weui_label"><span ng-if="pagedata.pluginset.minzclass" style="padding-right: 0.2rem">
							<i class="icon {{pagedata.pluginset.minzclass}}"></i></span>民族
							</label>
							</div>
							<div class="weui_cell_bd weui_cell_primary">
								<select class="weui_select" ng-model="pagedata.post.minz">
									<option ng-repeat="(key,value) in pagedata.minz" selected="pagedata.post.minz==key;" value="{{key}}">{{value}}</option>
								</select>
							</div>
			</div>
			<div class="weui_cell">
                <div class="weui_cell_hd">
					<label class="weui_label">
					<span ng-if="pagedata.pluginset.ageicon" style="padding-right: 0.2rem"><i class="icon {{pagedata.pluginset.ageicon}}"></i></span>
					年龄<span class="must"></span>
					</label>
				</div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.post.age" placeholder="{{pagedata.pluginset.agedesc || '输入年龄'}}">
                </div>
            </div>
			<div class="weui_cell">
                <div class="weui_cell_hd">
					<label class="weui_label">
					<span ng-if="pagedata.pluginset.codeicon" style="padding-right: 0.2rem"><i class="icon {{pagedata.pluginset.codeicon}}"></i></span>
					身份证号<span class="must"></span>
					</label>
				</div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.post.code" placeholder="{{pagedata.pluginset.codedesc || '输入身份证号'}}">
                </div>
            </div>
			<div class="weui_cell">
                <div class="weui_cell_hd">
					<label class="weui_label">
					<span ng-if="pagedata.pluginset.mobileicon" style="padding-right: 0.2rem"><i class="icon {{pagedata.pluginset.mobileicon}}"></i></span>
					联系电话<span class="must"></span>
					</label>
				</div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.post.mobile" placeholder="{{pagedata.pluginset.mobiledesc || '输入联系电话'}}">
                </div>
            </div>
			<div class="weui_cell">
                <div class="weui_cell_hd">
					<label class="weui_label">
					<span ng-if="pagedata.pluginset.addressicon" style="padding-right: 0.2rem"><i class="icon {{pagedata.pluginset.addressicon}}"></i></span>
					家庭住址<span class="must"></span>
					</label>
				</div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.post.address" placeholder="{{pagedata.pluginset.addressdesc || '输入家庭住址'}}">
                </div>
            </div>
			<div class="weui_cells_title" style="padding-left:0">
				<span ng-if="pagedata.post.yibaoicon" style="padding-right: 0.2rem">
				<i class="icon {{pagedata.post.yibaoicon}}"></i></span>医保类型
			</div>
			<div class="weui_cells weui_cells_radio2">
					<div class="weui_cell">
					<div class="fui-cell-label" ng-repeat="(key,value) in pagedata.yibao track by $index" ng-click="pagedata.post.yibao=value;" style="margin-right:0.8rem;float:left;margin-bottom:0.5rem">
						<input type="radio" class="fui fui-radio fui-radio-danger verify-radio" ng-checked='pagedata.post.yibao==value' name="radio1" value="{{value}}"> {{value}}
					</div>
					</div>
			</div>
			<div class="weui_cells_title" style="padding-left:0">
				<span ng-if="pagedata.post.shenfenicon" style="padding-right: 0.2rem">
				<i class="icon {{pagedata.post.shenfenicon}}"></i></span>本人身份
			</div>
			<div class="weui_cells weui_cells_radio2">
					<div class="weui_cell">
					<div class="fui-cell-label" ng-repeat="(key,value) in pagedata.shenfen track by $index" ng-click="pagedata.post.shenfen=value;" style="margin-right:0.8rem;float:left;margin-bottom:0.5rem">
						<input type="radio" class="fui fui-radio fui-radio-danger verify-radio" ng-checked='pagedata.post.shenfen==value' name="radio2" value="{{value}}"> {{value}}
					</div>
					</div>
			</div>
			<div class="weui_cell">
                <div class="weui_cell_hd">
					<label class="weui_label">
					<span ng-if="pagedata.pluginset.peinameicon" style="padding-right: 0.2rem"><i class="icon {{pagedata.pluginset.peinameicon}}"></i></span>
					被陪护人姓名<span class="must"></span>
					</label>
				</div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.post.peiname" placeholder="{{pagedata.pluginset.peinamedesc || '输入被陪护人姓名'}}">
                </div>
            </div>
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">
					<span ng-if="pagedata.pluginset.chuangnumicon" style="padding-right: 0.2rem"><i class="icon {{pagedata.pluginset.chuangnumicon}}"></i></span>
					床位号<span class="must"></span>
				</label>
			</div>
			<div class="weui_cell_bd weui_cell_primary">
				<input class="weui_input" type="text" ng-model="pagedata.post.chuangnum" placeholder="{{pagedata.pluginset.chuangnumdesc || '输入床位号'}}">
			</div>
		</div>
</div>
		<div class="weui_btn_area">
			<a class="weui_btn weui_btn_primary"  href="javascript:" ng-click="pagedata.diyfrompost();">提交信息</a>
		</div>
</div>
<script type="text/javascript">
scope.pagedata.getlocation=function(item){
		window.scope.location(function(re){
			item.data={};
				item.data.province = re.addressComponents.province
				item.data.city = re.addressComponents.city
				item.data.district = re.addressComponents.district
			scope.$evalAsync();
		});
}
scope.pagedata.diyfrompost=function(pageid,index){
	scope.post_json('jy_formget/diyform/post',scope.pagedata.post,function(result){});
}
</script>
<div ng-include="sys_html('_footer')"></div>
</div>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>